package com.auction.mapper;

import com.auction.common.dao.MyBaseMapper;
import com.auction.entity.Order;
import org.apache.ibatis.annotations.Mapper;


@Mapper
public interface OrderMapper extends MyBaseMapper<Order> {
    /**
     * 根据id删除订单
     * @param id
     * @return
     */
    int deleteOrderById(Integer id);

    /**
     * 修改订单信息
     * @param order
     * @return
     */
    int updateOrder(Order order);

    /**
     * 修改订单状态
     * @param order
     * @return
     */
    int updateOrderStatus(Order order);

    /**
     * 添加订单
     * @param order
     * @return
     */
    int addOrder(Order order);

    String maxCode(String month);

}
